<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>前后端调用</title>
	</head>
	<body>
		<div id="app">
			
		</div>
		<script src="../js/axios.js"></script>
		<script>
			let user={
				name:'小燕子',
				age: 18,
				sex: '女'
			}
			let url="http://localhost:8090/axios/saveUser"
			axios.post(url,user).then(promise=>{
				console.log(promise.data)
			})
		</script>
	</body>
</html>
